import request from "@/utils/request";

// 管理员登录
export const login = (obj) => {
  return request.post("/util/admin/login", obj);
};

// 获取司机信息
export const getDriver = () => {
  return request.post("/util/driver/getDriver");
};

// 获取商户信息
export const getMerchant = (obj) => {
  return request.post("/util/merchant/merchants", obj);
};

// 新增或更新商户信息
export const insertOrUpdateMerchant = (obj) => {
  return request.post("/util/merchant/insertOrUpdateMerchant", obj);
};

// 识别身份证信息
export const getRecognizeIdCard = (obj) => {
  return request.post("/ocr/recognizeIdCard", obj);
};

// 新增或更新司机信息
export const insertAndUpdateDriver = (obj) => {
  return request.post("util/driver/insertAndUpdateDriver", obj);
};

// 识别驾驶证信息
export const recognizeDrivingLicense = (obj) => {
  return request.post("/ocr/recognizeDrivingLicense", obj);
};

// 识别行驶证信息
export const recognizeVehicleLicense = (obj) => {
  return request.post("/ocr/recognizeVehicleLicense", obj);
};

// 新增或更新账户信息
export const insterOrUpdateAccounts = (obj) => {
  return request.post("/util/accounts/insterUpdateAccounts", obj);
};

// 新增或更新身份证信息
export const InsertOrUpdateIdCard = (obj) => {
  return request.post("/util/id-card/zengorgai", obj);
};

// 新增或更新营业执照信息
export const insterOrUpdateBusiness = (obj) => {
  return request.post("/util/business/insterUpdateBusiness", obj);
};
// 识别营业执照信息
export const recognizeBusinessLicense = (obj) => {
  return request.post("/ocr/recognizeBusinessLicense", obj);
};
// 识别开户信息信息
export const recognizeBankAccountLicense = (obj) => {
  return request.post("/ocr/recognizeBankAccountLicense", obj);
};